import axios from 'axios'

// 获取日程列表
export function getScheduleList(params) {
    return axios.get('/schedule/list', { params })
}

// 新增日程
export function addSchedule(data) {
    return axios.post('/schedule', data)
}

// 修改日程
export function updateSchedule(data) {
    return axios.put('/schedule', data)
}

// 删除日程
export function deleteSchedule(id) {
    return axios.delete(`/schedule/${id}`)
}

// 获取日程详情
export function getScheduleById(id) {
    return axios.get(`/schedule/${id}`)
}


